package com.yhm.action;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.opensymphony.xwork2.ActionSupport;
import com.yhm.service.IndexManager;
import com.yhm.util.page.Page;

@SuppressWarnings("serial")
@Component("index")
@Scope("prototype")
public class IndexAction extends ActionSupport{

	private String json;
	private Page page;
	private IndexManager indexManager;
	
	//订单统计
	public String order_stat(){
		json = indexManager.order_stat();
		return "json";
	}
	
	//标记订单
	public String sign_order(){
		json = indexManager.order_sign();
		return "json";
	}
	
	//新订单统计
	public String new_order_stat(){
		json = indexManager.new_order_stat();
		return "json";
	}

	
	
	public String getJson() {
		return json;
	}

	public void setJson(String json) {
		this.json = json;
	}

	public Page getPage() {
		return page;
	}

	public void setPage(Page page) {
		this.page = page;
	}

	public IndexManager getIndexManager() {
		return indexManager;
	}

	@Resource(name = "indexManager")
	public void setIndexManager(IndexManager indexManager) {
		this.indexManager = indexManager;
	}
	
	
}
